package com.power200.android.enumeration;

/**
 * Created by liuming on 10/12/15.
 */
public enum BacklogEnum {

    TODO(0), WORKING(1), COMPLETE(2), HOLD(3);

    private BacklogEnum(int value) {
        this.value = value;
    }

    private int value = 0;

    public static String display(int value) {
        BacklogEnum backlog = null;
        for (BacklogEnum item : BacklogEnum.values()) {
            if (item.value == value) {
                backlog = item;
                break;
            }
        }

        return backlog == null ? "" : backlog.toString();
    }

    public int value() {
        return value;
    }

}
